import request from '@/api/socialized-servce/index.js' //引入http.js
const api = request
export default {

	/** 
	 * 同意报价单
	 * @param {string} quotationNo 
	 * @returns
	 */
	agree(quotationNo) {
		return api.request(`service/orderQuotation/agree?quotationNo=${quotationNo}`, 'get');
	},
	/** 
	 * 驳回报价单
	 * @param {string} quotationNo 
	 * @param {string} reason 
	 * @returns
	 */
	reject(quotationNo, reason) {
		return api.request(`service/orderQuotation/reject?quotationNo=${quotationNo}&reason=${reason}`,
			'get');
	},
	/**
	 *  查询修改订单申请
	 * @param {string} quotationNo 
	 * @param {string} reason 
	 * @returns
	 */
	queryApplyExecuteChange(params) {
		return api.request('service/orderApply/queryApplyExecuteChange', 'get', params);
	},
	/** 
	 * 审核修改订单
	 * @param {string} executeNo 
	 * @param {string} reason 
	 * @param {string} pass 
	 * @returns
	 */
	examineApplyExecute(executeNo, reason, pass) {
		return api.request(
			`service/orderApply/examineApplyExecute?executeNo=${executeNo}&reason=${reason}&pass=${pass}`,
			'post');
	}

}